﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Pager.ascx.cs" Inherits="SBACN.WebSite.UC.Pager" %>
<style type="text/css">
	.cutepage
	{
		padding: 8px;
		text-align: right;
	}
	.cutepage span
	{
		color: #4565A0;
		margin-left: 3px;
		padding-top: 2px;
		padding-bottom: 2px;
		padding-left: 4px;
		padding-right: 4px;
		border: #88d3ee 1px solid;
		vertical-align: middle;
		text-decoration: none;
		cursor: default;
	}
	.cutepage A
	{
		margin-left: 3px;
		padding-top: 2px;
		padding-bottom: 2px;
		padding-left: 4px;
		padding-right: 4px;
		border: #88d3ee 1px solid;
		vertical-align: middle;
		text-decoration: none;
		cursor: pointer;
	}
	.cutepage A.selected
	{
		background: #73b8ea;
		color: #ffffff;
		text-decoration: none;
	}
	.cutepage INPUT
	{
		width: 20px;
		margin-left: 3px;
		padding: 2px;
		background: transparent;
		border: #AFAFAF 1px solid;
	}
	.cutepageMini
	{
		padding: 8px;
		text-align: right;
	}
	.cutepage.prev, .cutepage.next
	{
		background: none repeat scroll 0 0 #FFFFFF;
		border-color: #999999;
		color: #999999;
		cursor: default;
	}
</style>
<div id="pagesDiv" runat="server" class="cutepage">
	<asp:LinkButton ID="LbtFirstPage" runat="server" Text="<上一页" OnClick="LbtFirstPage_Click"></asp:LinkButton>
	<asp:Repeater ID="RptFirst" runat="server" OnItemDataBound="RptFirst_ItemDataBound" OnItemCommand="RptFirst_ItemCommand">
		<ItemTemplate>
			<asp:LinkButton ID="LbtFisrt" runat="server" CommandName="turnpage" CommandArgument='<%#Eval("PageIndex")%>'><%#Eval("PageIndex")%></asp:LinkButton>
		</ItemTemplate>
	</asp:Repeater>
	<asp:Literal ID="Lit_first" runat="server" Text="..."></asp:Literal>
	<asp:Repeater ID="RptMiddle" runat="server" OnItemDataBound="RptMiddle_ItemDataBound" OnItemCommand="RptMiddle_ItemCommand">
		<ItemTemplate>
			<asp:LinkButton ID="LbtMiddle" runat="server" CommandName="turnpage" CommandArgument='<%#Eval("PageIndex")%>'><%#Eval("PageIndex")%></asp:LinkButton>
		</ItemTemplate>
	</asp:Repeater>
	<asp:Literal ID="Lit_last" runat="server" Text="..."></asp:Literal>
	<asp:Repeater ID="RptLast" runat="server" OnItemDataBound="RptLast_ItemDataBound" OnItemCommand="RptLast_ItemCommand">
		<ItemTemplate>
			<asp:LinkButton ID="LbtLast" runat="server" CommandName="turnpage" CommandArgument='<%#Eval("PageIndex")%>'> <%#Eval("PageIndex")%> </asp:LinkButton>
		</ItemTemplate>
	</asp:Repeater>
	<asp:LinkButton ID="LbtLastPage" runat="server" Text="下一页>" OnClick="LbtLastPage_Click"></asp:LinkButton>
	<asp:Label ID="lblPageStatus" runat="server" Text="" />
</div>
